type
status
date
slug
summary
tags
category
icon
password
This guide explains how to configure a custom domain (e.g.,
yourdomain.com
) for projects deployed on Vercel, including resolving HTTPS certificate issues.Vercel Custom Domain Setup Guide
🔗 Relevant Links
- Cloudflare Official Website (Optional DNS Provider)
1️⃣ Prerequisites
- A project already deployed to Vercel
- If not deployed, refer to Vercel Deployment Guide.
- Ownership of a domain
- Purchase one from registrars like Namesilo Namecheap, GoDaddy, or Alibaba Cloud.

2️⃣ Step 1: Add Domain in Vercel
- Log in to the Vercel Dashboard and select your project.
- Navigate to Settings → Domains.
- Enter your domain (e.g.,
yourdomain.com
orblog.yourdomain.com
) and click Add.
- Vercel will automatically detect the domain configuration and prompt you to set up DNS records.

3️⃣ Step 2: Configure DNS Records
Follow instructions based on your domain registrar:
A. Using Vercel’s Default DNS
- In your registrar’s DNS settings, add these records:
B. Using Cloudflare (Recommended)
- Log in to the Cloudflare Dashboard and add your domain.
- Under DNS Management, add a record:
- Ensure Cloudflare’s SSL/TLS mode is set to Full.

4️⃣ Step 3: Verify HTTPS Certificate
- Vercel automatically requests a Let’s Encrypt SSL certificate (may take 1–24 hours).
- Check certificate status:
- View domain status in Vercel’s Domains section.
- Test accessibility via
https://yourdomain.com
.
- If the certificate fails:
- Confirm DNS propagation (use DNS Checker).
- Manually retry certificate issuance in Vercel (click Refresh).

5️⃣ Advanced Configurations
Redirects
- Add rules to
vercel.json
to redirectwww.yourdomain.com
toyourdomain.com
:
Subdomains
- To bind additional subdomains (e.g.,
docs.yourdomain.com
), repeat Steps 1–2.
❌ Common Issues
Q1: DNS Not Propagating
- Check TTL settings (recommended: 600 seconds).
- Verify with
dig yourdomain.com
or WhatsMyDNS.
Q2: HTTPS Certificate Errors
- Disable Universal SSL in Cloudflare (may conflict with Vercel).
- Remove and re-add the domain in Vercel.
📌 Summary
- Add domain in Vercel → Obtain DNS records.
- Configure DNS with your registrar (A/CNAME records).
- Wait for HTTPS auto-provisioning.
- Test access at
https://yourdomain.com
.
For registrars not listed (e.g., Tencent Cloud, Huawei Cloud), refer to Vercel’s official docs or contact their support.
- Author:Qi Liu
- URL:https://skim67.vercel.app//Technology%20Sharing/example-7
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!